package com.mspbots.core.wise.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mspbots.core.DefaultBaseService;
import com.mspbots.core.wise.model.TenantUserConfiguration;
import com.mspbots.cw.request.TenantUserConfigurationDTO;

import java.util.List;


/**
 * <p>
 * service
 * </p>
 *
 * @author Jun Zhou
 * @since 2019-06-24
 */
public interface TenantUserConfigurationService extends DefaultBaseService<TenantUserConfiguration> {

    TenantUserConfiguration findByKeyword(TenantUserConfiguration tenantUserConfiguration);

    IPage<TenantUserConfigurationDTO> workTimePage(Page<TenantUserConfigurationDTO> page, TenantUserConfiguration query);

    List<TenantUserConfiguration> workTimeList(TenantUserConfiguration query);


    Object saveUserDaylightTime(TenantUserConfiguration dto);

    TenantUserConfiguration insertOrUpdate(TenantUserConfiguration dto);

    Object insertOrUpdateBatch(List<TenantUserConfiguration> list);

    boolean deleteWorkTime(List<Long> userList);
}
